package com.ld.wms.business.locker.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 智能柜表
 * </p>
 *
 * @author wangfeng
 * @since 2025-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("locker_ext")
@Schema(description = "LockerExtModel对象")
public class LockerExtModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "柜体id")
    private Long lockerId;

    @Schema(description = "柜体code")
    private String lockerCode;

    @Schema(description = "冷藏偏差报警值")
    private Integer refrigerateDeviation;

    @Schema(description = "冷冻偏差报警值")
    private Integer freezeDeviation;

    @Schema(description = "照明状态:0自动，1常开，2关")
    private Integer lightingStatus;

    @Schema(description = "风扇速度")
    private Integer fanSpeed;

    @Schema(description = "化霜间隔")
    private Integer openFrostInterval;


    public static final String ID = "id";

    public static final String LOCKER_ID = "locker_id";

    public static final String LOCKER_CODE = "locker_code";

    public static final String REFRIGERATE_DEVIATION = "refrigerate_deviation";

    public static final String FREEZE_DEVIATION = "freeze_deviation";

    public static final String LIGHTING_STATUS = "lighting_status";

    public static final String FAN_SPEED = "fan_speed";

    public static final String OPEN_FROST_INTERVAL = "open_frost_interval";

}
